using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace XiaoYuStock.Model.Models
{
    [Table("DayData")]
    public class DayData
    {

		/// <summary>
        ///Id
        /// </summary>
		[Key,DatabaseGenerated(DatabaseGeneratedOption.Identity),Required]
		public int Id { get; set; }

		/// <summary>
        ///ShareCode
        /// </summary>
		[Required,MaxLength(20)]
		public string ShareCode { get; set; }

		/// <summary>
        ///CurrentTime
        /// </summary>
		[Required,MaxLength(20)]
		public string CurrentTime { get; set; }

		/// <summary>
        ///CurrentPrice
        /// </summary>
		[Required]
		public decimal CurrentPrice { get; set; }

		/// <summary>
        ///FloatPrice
        /// </summary>
		[Required]
		public decimal FloatPrice { get; set; }

		/// <summary>
        ///TradeCount
        /// </summary>
		[Required]
		public long TradeCount { get; set; }

		/// <summary>
        ///TradeAmount
        /// </summary>
		[Required]
		public decimal TradeAmount { get; set; }

		/// <summary>
        ///IsBuy
        /// </summary>
		[Required]
		public bool IsBuy { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Required]
        public DateTime CurrentDate { get; set; }

    }
}

